<div class="menuses view">
<h2><?php  echo __d('menuses','Menus');?></h2>
	<dl>
		<dt><?php echo __d('menuses','Id'); ?></dt>
		<dd>
			<?php echo h($menus['Menus']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('menuses','Title'); ?></dt>
		<dd>
			<?php echo h($menus['Menus']['title']); ?>
			&nbsp;
		</dd>		
		<dt><?php echo __d('menuses','Name'); ?></dt>
		<dd>
			<?php echo h($menus['Menus']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('menuses','Slug'); ?></dt>
		<dd>
			<?php echo h($menus['Menus']['slug']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('menuses','Url'); ?></dt>
		<dd>
			<?php echo h($menus['Menus']['url']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __d('menuses','Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__d('menuses','Edit Menus'), array('action' => 'edit', $menus['Menus']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__d('menuses','Delete Menus'), array('action' => 'delete', $menus['Menus']['id']), null, __d('menuses','Are you sure you want to delete # %s?', $menus['Menus']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__d('menuses','List Menuses'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('menuses','New Menus'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__d('menuses','List Menuses'), array('controller' => 'menuses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('menuses','New Parent Menus'), array('controller' => 'menuses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__d('menuses','List Domains'), array('controller' => 'domains', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('menuses','New Domain'), array('controller' => 'domains', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__d('menuses','List Submenus'), array('controller' => 'submenus', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__d('menuses','New Submenu'), array('controller' => 'submenus', 'action' => 'add')); ?> </li>
	</ul>
</div>

<div class="related">
	<h3><?php echo __d('menuses','Related Domains');?></h3>
	<?php if (!empty($menus['Domain'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __d('menuses','Id'); ?></th>
		<th><?php echo __d('menuses','Server Id'); ?></th>
		<th><?php echo __d('menuses','Serversip Id'); ?></th>
		<th><?php echo __d('menuses','Name'); ?></th>
		<th><?php echo __d('menuses','Descriptions'); ?></th>
		<th><?php echo __d('menuses','Added'); ?></th>
		<th><?php echo __d('menuses','Modified'); ?></th>
		<th class="actions"><?php echo __d('menuses','Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($menus['Domain'] as $domain): ?>
		<tr>
			<td><?php echo $domain['id'];?></td>
			<td><?php echo $domain['server_id'];?></td>
			<td><?php echo $domain['serversip_id'];?></td>
			<td><?php echo $domain['name'];?></td>
			<td><?php echo $domain['descriptions'];?></td>
			<td><?php echo $domain['added'];?></td>
			<td><?php echo $domain['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__d('menuses','View'), array('controller' => 'domains', 'action' => 'view', $domain['id'])); ?>
				<?php echo $this->Html->link(__d('menuses','Edit'), array('controller' => 'domains', 'action' => 'edit', $domain['id'])); ?>
				<?php echo $this->Form->postLink(__d('menuses','Delete'), array('controller' => 'domains', 'action' => 'delete', $domain['id']), null, __d('menuses','Are you sure you want to delete # %s?', $domain['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__d('menuses','New Domain'), array('controller' => 'domains', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __d('menuses','Related Submenus');?></h3>
	<?php if (!empty($menus['Submenu'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __d('menuses','Id'); ?></th>
		<th><?php echo __d('menuses','Parent Id'); ?></th>
		<th><?php echo __d('menuses','Lft'); ?></th>
		<th><?php echo __d('menuses','Rght'); ?></th>
		<th><?php echo __d('menuses','Name'); ?></th>
		<th><?php echo __d('menuses','Slug'); ?></th>
		<th><?php echo __d('menuses','Url'); ?></th>
		<th class="actions"><?php echo __d('menuses','Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($menus['Submenu'] as $submenu): ?>
		<tr>
			<td><?php echo $submenu['id'];?></td>
			<td><?php echo $submenu['parent_id'];?></td>
			<td><?php echo $submenu['lft'];?></td>
			<td><?php echo $submenu['rght'];?></td>
			<td><?php echo $submenu['name'];?></td>
			<td><?php echo $submenu['slug'];?></td>
			<td><?php echo $submenu['url'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__d('menuses','View'), array('controller' => 'submenus', 'action' => 'view', $submenu['id'])); ?>
				<?php echo $this->Html->link(__d('menuses','Edit'), array('controller' => 'submenus', 'action' => 'edit', $submenu['id'])); ?>
				<?php echo $this->Form->postLink(__d('menuses','Delete'), array('controller' => 'submenus', 'action' => 'delete', $submenu['id']), null, __d('menuses','Are you sure you want to delete # %s?', $submenu['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__d('menuses','New Submenu'), array('controller' => 'submenus', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
